package com.gk.company.view.bottom
{
	import com.gk.app.Language;
	import com.gk.app.SYS;
	import com.gk.util.GameSprite;
	import com.gk.util.component.LabelButton;
	
	import flash.display.DisplayObjectContainer;
	
	public class SysBtnView extends GameSprite
	{

		private var researchBtn:LabelButton;//研发
		private var hrBtn:LabelButton;//人事
		
		public var backBtn:LabelButton;//回家
		public function SysBtnView(parent:DisplayObjectContainer=null, xpos:Number=0, ypos:Number=0)
		{
			
			researchBtn = new LabelButton(this,80,0,Language.COMPANY_SYS_BTN[2]);
			researchBtn.setSize(70,20);
			hrBtn = new LabelButton(this,180,0,Language.COMPANY_SYS_BTN[3]);
			hrBtn.setSize(70,20);
			
			
			backBtn = new LabelButton(this,480,0,Language.COMPANY_SYS_BTN[4]);
			backBtn.setSize(40,20);
			isMyCompany(true);
			super(parent, xpos, ypos);
			
		}
		
		public function isMyCompany(v:Boolean):void{
			researchBtn.visible = hrBtn.visible = v;
			backBtn.visible = !v;
		}
	}
}